﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ListNews.aspx.cs" Inherits="Maticsoft.Web.sysMan.ListNews" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <link href="../css/style.css" rel="stylesheet" type="text/css" />
    <script src="../My97DatePicker/WdatePicker.js" type="text/javascript"></script>
    <style type="text/css">
        .style2
        {
            font-size: 13px;
            font-weight: bold;
            color: #0000FF;
        }
        .topM
        {
            margin-top: 18px;
        }
        .style3
        {
            width: 100%;
        }
    </style>
</head>
<body style="font-size: 12px;">
    <form id="form1" runat="server">
    <div>
        <fieldset style="margin: 10px;">
            <legend class="fole_end">
                <asp:Image ID="Image2" runat="server" ImageUrl="~/Images/fieldset.gif" />
                <span class="style2">文章通知公告管理</span></legend>
            <div style="text-align: center">
                <table class="style3">
                    <tr>
                        <td style=" height:18px; text-align: left;">
                            <b>文章类型：</b>&nbsp;<asp:DropDownList ID="ddl_type" runat="server">
                                    <asp:ListItem>全部</asp:ListItem>
                                    <asp:ListItem>资料库</asp:ListItem>
                                    <asp:ListItem>通知公告</asp:ListItem>
                                </asp:DropDownList>
                        </td>
                    </tr>
                    <tr>
                        <td style=" height:18px; text-align: left;">
                            <b>文章标题：</b><asp:TextBox 
                                ID="txtnewsTitle" runat="server" Width="503px"></asp:TextBox>
                            <asp:Button ID="btn_sel" runat="server" Text="查询" Width="86px" 
                                onclick="btn_sel_Click" />
                        </td>
                    </tr>
                    <tr>
                        <td style=" height:18px; text-align: center;">
                            &nbsp;</td>
                    </tr>
                    <tr>
                        <td style=" height:18px;">
                            <asp:GridView ID="gridView" runat="server" AllowPaging="True" 
                                AutoGenerateColumns="False" BorderWidth="1px" CellPadding="3" 
                                DataKeyNames="newsId" OnPageIndexChanging="gridView_PageIndexChanging" 
                                OnRowCreated="gridView_OnRowCreated" OnRowDataBound="gridView_RowDataBound" 
                                RowStyle-HorizontalAlign="Center" Width="100%">
                                <Columns>
                                    <asp:TemplateField ControlStyle-Width="30" HeaderText="选择">
                                        <ItemTemplate>
                                            <asp:CheckBox ID="DeleteThis" runat="server" onclick="javascript:CCA(this);" />
                                        </ItemTemplate>

<ControlStyle Width="30px"></ControlStyle>
                                    </asp:TemplateField>
                                    <asp:BoundField DataField="newsTitle" HeaderText="标题" 
                                        ItemStyle-HorizontalAlign="Center" SortExpression="newsTitle">
<ItemStyle HorizontalAlign="Center"></ItemStyle>
                                    </asp:BoundField>
                                    <asp:BoundField DataField="newsType" HeaderText="新闻类别" 
                                        ItemStyle-HorizontalAlign="Center" SortExpression="newsType">
<ItemStyle HorizontalAlign="Center"></ItemStyle>
                                    </asp:BoundField>
                                    <asp:BoundField DataField="newsPublisher" HeaderText="作者" 
                                        ItemStyle-HorizontalAlign="Center" SortExpression="newsPublisher">
<ItemStyle HorizontalAlign="Center"></ItemStyle>
                                    </asp:BoundField>
                                    <asp:BoundField DataField="newsPubTime" HeaderText="发布时间" 
                                        ItemStyle-HorizontalAlign="Center" SortExpression="newsPubTime">
<ItemStyle HorizontalAlign="Center"></ItemStyle>
                                    </asp:BoundField>
                                    <asp:BoundField DataField="newsCount" HeaderText="浏览次数" 
                                        ItemStyle-HorizontalAlign="Center" SortExpression="newsCount" 
                                        Visible="False">
<ItemStyle HorizontalAlign="Center"></ItemStyle>
                                    </asp:BoundField>
                                    <asp:HyperLinkField ControlStyle-Width="50" DataNavigateUrlFields="newsId" 
                                        DataNavigateUrlFormatString="AddNews.aspx?id={0}" HeaderText="编辑" Text="编辑">
<ControlStyle Width="50px"></ControlStyle>
                                    </asp:HyperLinkField>
                                    <asp:TemplateField ControlStyle-Width="50" HeaderText="删除" Visible="false">
                                        <ItemTemplate>
                                            <asp:LinkButton ID="LinkButton1" runat="server" CausesValidation="False" 
                                                CommandName="Delete" Text="删除"></asp:LinkButton>
                                        </ItemTemplate>

<ControlStyle Width="50px"></ControlStyle>
                                    </asp:TemplateField>
                                </Columns>

<RowStyle HorizontalAlign="Center" Height="25px"></RowStyle>
 <PagerStyle CssClass="mypager" />
                            </asp:GridView>
                        </td>
                    </tr>
                     <tr>
                        <td style=" height:18px;">
                        <asp:Button ID="btnDelete" runat="server" Text="删除选定项" OnClick="btnDelete_Click" 
                                Width="118px"/>                       
                         </td>
                    </tr>
                </table>
            </div>
        </fieldset>
    </div>
    </form>
</body>
</html>
